package cn.edu.neusoft.demo.hospital2.Service;

import cn.edu.neusoft.demo.hospital2.pojo.DoctorWork;
import cn.edu.neusoft.demo.hospital2.pojo.PatientDoctor;

import java.util.List;

public interface AppointmentService {
    // 查询医生出诊信息
    List<DoctorWork> getDoctorWorkList(DoctorWork doctorWork);

    // 预约挂号
    boolean makeAppointment(PatientDoctor patientDoctor);

    // 取消预约
    boolean cancelAppointment(Integer id);

    // 根据患者ID查询预约记录
    List<PatientDoctor> getAppointmentsByPatientId(String patientId);

    // 根据ID查询预约记录
    PatientDoctor getAppointmentById(Integer id);

    // 更新预约记录
    boolean updateAppointment(PatientDoctor patientDoctor);

    // 查询所有预约记录
    List<PatientDoctor> getAllAppointments();
}